//
//  Devices.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/4/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "Devices.h"

@implementation Devices

- (NSString*)freezerId{

    return _freezerIdStr;
}

- (NSString*)uid{

    return _uidStr;
}

- (NSString*)deviceName{

    return _deviceNameStr;
}

- (NSString*)companyId{

    return _companyIdStr;
}

- (NSString*)measureStatus{

    return _measureStatusStr;
}

- (NSString*)measureName{

    return _measureNameStr;
}

- (NSString*)measureDescription{

    return _measureDescriptionStr;
}

- (NSString*)measureSeverity{

    return _measureSeverityStr;
}

- (NSString*)healthStatusCode{

    return _healthStatusCodeStr;
}

- (NSString*)healthStatusText{

    return _healthStatusTextStr;
}

- (NSString*)healthStatusColor{

    return _healthStatusColorStr;
}

- (NSString*)connectionState{

    return _connectionStateStr;
}

- (NSString *)deviceType{

    return _deviceTypeStr;
}

+ (instancetype)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andDeviceType:(NSString*)deviceType{

    Devices *devices = [[self alloc] init];
    
    devices.freezerIdStr = freezerID;
    devices.uidStr = uid;
    devices.deviceNameStr = deviceName;
    devices.companyIdStr = companyID;
    devices.measureStatusStr = measureStatus;
    devices.measureNameStr = measureName;
    devices.measureDescriptionStr = measureDescription;
    devices.measureSeverityStr = measureSeverity;
    devices.healthStatusCodeStr = healthStatusCode;
    devices.healthStatusTextStr = healthStatustext;
    devices.healthStatusColorStr = healthStatusColor;
    devices.connectionStateStr = connectionState;
    devices.deviceTypeStr = deviceType;
    
    return devices;

}

+ (instancetype)devicesWithFreezerID:(NSString*)freezerID andDeviceType:(NSString *)deviceType{

    Devices *devices = [[self alloc] init];
    
    devices.freezerIdStr = freezerID;
    devices.deviceTypeStr = deviceType;
    
    return devices;

}

+ (instancetype)alarmEventDevicesWithDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID{
    
    Devices *devices = [[self alloc] init];
    
    devices.deviceTypeStr = deviceType;
    devices.freezerIdStr = freezerID;
    devices.deviceNameStr = freezerName;
    devices.companyIdStr = companyID;
    
    return devices;

}



@end
